package com.sofwin.service.impl;

import com.sofwin.mapper.SysResourceMapper;
import com.sofwin.pojo.SysResource;
import com.sofwin.system.ResourceService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @packageName: com.sofwin.service.impl
 * @user: andyliu
 * @date: 2021/9/28 11:51
 * @email 115176513@qq.com
 * @description: TODO
 */
@Service(interfaceClass = ResourceService.class,timeout = 10000)
public class ResourceServiceImpl implements ResourceService {
    @Autowired
    private SysResourceMapper mapper;
    @Override
    public List<SysResource> queryAllResources(Integer roleId) {
        return mapper.selectRoleResource(roleId);
    }
}
